package com.example.vv.frameWork.net;

import com.example.vv.frameWork.code.ReqUntile;
import com.example.vv.req.BaseRequest;
import com.example.vv.res.BaseRespont;

import io.reactivex.Observable;

public class API_FACTORY {
    /**
     * @param baseRequest
     * @return 登录
     */
    public static Observable<BaseRespont> POST_API_LOGIN( BaseRequest baseRequest){
       return  ReqUntile.request(NetUrl.POST_API_LOGIN,baseRequest);
    }


    /**
     * @param baseRequest
     * @return 注册
     */
    public static Observable<BaseRespont> POST_API_REGISTER(BaseRequest baseRequest){
        return  ReqUntile.request(NetUrl.POST_API_REGISTER,baseRequest);
    }

    /**
     * @param
     * @return 社区
     */
    public static Observable<BaseRespont> POST_API_CHAT( BaseRequest baseRequest){
        return  ReqUntile.request(NetUrl.POST_API_CHAT,baseRequest);
    }

}
